package blt.app_core.http.callback;


import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by Administrator on 2017/1/10.
 */
public abstract class UICallBack<T> extends HttpCallback<T> {
    @Override
    public void dispatchFailure(final Request request, final Response response, final Exception e) {
        onFailure(request, response, e);
    }

    @Override
    public void dispatchSuccess(final T response, final int code) {
        onSuccess(response, code);
    }

    @Override
    public void dispatchProgress(final long current, final long count) {
        onProgress(current, count);
    }


}
